﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Seguimiento.aspx.cs" Inherits="DECOR.WebApp.Seguimiento" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="cc1" %>
<%@ Register Assembly="DevExpress.Web.ASPxTreeList.v8.3" Namespace="DevExpress.Web.ASPxTreeList" TagPrefix="dxwtl" %>
<%@ Register assembly="IdeaSparx.CoolControls.Web" namespace="IdeaSparx.CoolControls.Web" tagprefix="cc2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Seguimiento</title>
    <link rel="Stylesheet" media="all" type="text/css" href="css/master.css" />
    <link rel="Seguimiento</title>
    <link rel="Stylesheet" media="all" type="text/css" href="css/master.css" />
    <link rel="Seguimiento</title>
    <link rel="Stylesheet" media="all" type="text/css" href="css/master.css" />
    <link rel="Seguimiento</title>
    <link rel="Stylesheet" media="all" type="text/css" href="css/master.css" />
    <link rel="Stylesheet" media="all" type="text/css" href="css/controls.css" />
</head>
<body>
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
                
        <cc1:TabContainer ID="tcMain" runat="server" TabStripPlacement="Top" ActiveTabIndex="0" 
                Height="280px" Width="950px">
            <cc1:TabPanel ID="tpFlujo" runat="server">
                <HeaderTemplate>Flujo</HeaderTemplate>
                <ContentTemplate>
                
                    <asp:ImageButton ID="btnVer" runat="server" ImageUrl="~/img/view.png" onclick="btnVer_Click"
                                 AlternateText="Ver documento" ToolTip="Ver documento" />&nbsp;
                
                    <input id="btnVer_aux" runat="server" style="visibility: hidden;" type="text" />
                    <cc1:ModalPopupExtender ID="mpeEntrega" runat="server" PopupControlID="pnlEntrega"
                        BackgroundCssClass="modalBackground" CancelControlID="ibtnCloseEntrega" 
                        PopupDragHandleControlID="pnlTituloEntrega"
                        TargetControlID="btnVer_aux" DynamicServicePath="" Enabled="True"  />
                    <asp:Panel ID="pnlEntrega" runat="server" ScrollBars="Auto" Width="800px" 
                        Height="320px" CssClass="modalPopup">
                        <asp:Panel ID="pnlTituloEntrega" runat="server" Width="800px" Height="16px" 
                            BackColor="LightBlue" BorderColor="#6289AE" HorizontalAlign="Center">
                            <asp:Label ID="lblTituloEntrega" runat="server" Text="Detalle de Entrega" />
                        </asp:Panel>
                    
                        <cc2:CoolGridView ID="cgvEntrega" runat="server" CssClass="tbl-detalle" 
                            AutoGenerateColumns="False" GridLines="None" AllowResizeColumn="False" 
                            Height="260px" Width="750px" 
                            >
                            <BoundaryStyle BorderColor="Gray" BorderStyle="Solid" BorderWidth="2px" />
                            <Columns>
                                                <asp:BoundField DataField="Vbeln" headertext="Entrega">
                                                    <HeaderStyle Width="70px" />
                                                    <ItemStyle Width="70px" HorizontalAlign="Left" VerticalAlign="Middle" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Posnr"  headertext="Pos">
                                                    <HeaderStyle Width="50px" />
                                                    <ItemStyle Width="50px" VerticalAlign="Middle" HorizontalAlign ="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Matnr" headertext="Material">
                                                    <HeaderStyle Width="70px" />
                                                    <ItemStyle Width="70px" VerticalAlign="Middle" HorizontalAlign ="Left"  />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Arktx" headertext="Denominación">
                                                    <HeaderStyle Width="150px" />
                                                    <ItemStyle Width="150px" VerticalAlign="Middle" HorizontalAlign ="Left" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Lfimg"  headertext="Ctd. Ent." DataFormatString="{0:0,0.00}">
                                                    <HeaderStyle Width="50px" />
                                                    <ItemStyle Width="50px" VerticalAlign="Middle" HorizontalAlign ="Right" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Meins" headertext="UMB">
                                                    <HeaderStyle Width="50px" />
                                                    <ItemStyle Width="50px"  VerticalAlign="Middle" HorizontalAlign ="Right" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Werks" headertext="Centro">
                                                    <HeaderStyle Width="50px" />
                                                    <ItemStyle Width="50px"  VerticalAlign="Middle" HorizontalAlign ="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Lgort" headertext="Almacen">
                                                    <HeaderStyle Width="150px" />
                                                    <ItemStyle Width="150px"  VerticalAlign="Middle" HorizontalAlign ="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Charg" headertext="Lote">
                                                    <HeaderStyle Width="100px" />
                                                    <ItemStyle Width="100px"  VerticalAlign="Middle" HorizontalAlign ="Center" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Ntgew" headertext="Peso">
                                                    <HeaderStyle Width="50px" />
                                                    <ItemStyle Width="50px"  VerticalAlign="Middle" HorizontalAlign ="Right" />
                                                </asp:BoundField>
                                                <asp:BoundField DataField="Gewei"  headertext="UM">                              
                                                                
                                                    <HeaderStyle Width="50px" />
                                                                
                                                    <ItemStyle Width="50px"  VerticalAlign="Middle" HorizontalAlign ="Left" />
                                                </asp:BoundField>

                            </Columns>
                        </cc2:CoolGridView>
                    
                        <div style="width:100%; text-align:right; padding-top:5px;">
                            <asp:ImageButton ID="ibtnCloseEntrega" runat="server" ImageUrl="~/img/cancel16.png" ImageAlign="Middle" />
                        </div>                    
                    </asp:Panel>


                    <dxwtl:ASPxTreeList ID="TreeList" runat="server" ParentFieldName="Hijos"
                            AutoGenerateColumns="False" KeyFieldName="Jerarquia">
                        <Columns>
                            <dxwtl:TreeListTextColumn Caption="Jerarquia" FieldName="Jerarquia" 
                                VisibleIndex="0" Visible="False">
                            </dxwtl:TreeListTextColumn>
                            <dxwtl:TreeListTextColumn Caption="Tipo de Documento" FieldName="TipoDocumento" 
                                VisibleIndex="0">
                            </dxwtl:TreeListTextColumn>
                            <dxwtl:TreeListTextColumn Caption="Numero de Documento" 
                                FieldName="NumDocumento" VisibleIndex="1">
                            </dxwtl:TreeListTextColumn>
                            <dxwtl:TreeListTextColumn Caption="Fecha de Documento" 
                                FieldName="DocFechaStr" VisibleIndex="2">
                            </dxwtl:TreeListTextColumn>
                            <dxwtl:TreeListTextColumn Caption="Estado de Documento" FieldName="Estado" 
                                VisibleIndex="3">
                            </dxwtl:TreeListTextColumn>
                            <dxwtl:TreeListTextColumn Caption="Referencia" FieldName="Referencia" 
                                VisibleIndex="4">
                            </dxwtl:TreeListTextColumn>
                            <dxwtl:TreeListTextColumn FieldName="Hijos" VisibleIndex="3" Visible="False">
                            </dxwtl:TreeListTextColumn>
                        </Columns>
                        <Settings GridLines="Both" SuppressOuterGridLines="True" />
                        <SettingsBehavior  AllowFocusedNode="True" focusnodeonload="False" />
                        <Styles>
                            <FocusedNode BackColor="#FFCC66" />
                        </Styles>
                    </dxwtl:ASPxTreeList>
                
                </ContentTemplate>
            </cc1:TabPanel>
            <cc1:TabPanel ID="tpDetalle" runat="server">
                <HeaderTemplate>Status</HeaderTemplate>
                <ContentTemplate>
                    <table border="1" class="tbl-params">
                        <tr><th colspan="2" style="text-align: left;">Status de tratamiento</th></tr>
                        <tr><td style="width: 200px;">Status global:</td><td><asp:Label ID="lbl_global" runat="server" /></td></tr>
                        <tr><td>Status-rechazo:</td><td><asp:Label ID="lbl_rechazo" runat="server" /></td></tr>
                        <tr><td>Status entrega:</td><td><asp:Label ID="lbl_entrega" runat="server" /></td></tr>
                        <tr><td>Status crédito:</td><td><asp:Label ID="lbl_credito" runat="server" /></td></tr>
                        <tr><td>Status bloqueo total:</td><td><asp:Label ID="lbl_bloqueo" runat="server" /></td></tr>
                    </table>
                </ContentTemplate>
            </cc1:TabPanel>
        </cc1:TabContainer>
                
    </form>
</body>
</html>
